<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LQ
  Date: 2021/8/19
  Time: 16:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册</title>
</head>
<style>
    body{
        background-image: url("/img/login_bg.png");
    }

    input{
        width: 200px;
        height: 40px;
    }

    label{
        font-size: 20px;
    }
</style>
<body>
<div style="margin-left: 40%;margin-top: 10%">
    <c:if test="${nameIsExists != null}">
        <h1 style="color: coral">该用户名称已存在</h1>
    </c:if>
    <form action="/doRegister" method="post">
        <label for="name">昵称</label>
        <input type="text" name="un" maxlength="6" id="name">

        <br>
        <label for="pwd">密码</label>
        <input type="text" name="up" maxlength="8" id="pwd">
        <br>

        <label for="tel">电话</label>
        <input type="text" maxlength="11" name="ut" id="tel">

        <br>

        <label for="sex">性别</label>
        <select id="sex" name="us">
            <option value="男" name="us">男</option>
            <option value="女" name="us">女</option>
        </select>
        <br>
        <button style="font-size:20px;color:aliceblue;border-radius:5px;margin-top:20px;margin-left:80px;width: 100px;height: 50px;background-color: #33b86c" type="submit">注册</button>
    </form>
</div>

</body>
</html>
